package com.hellogood.work.evaluate.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.work.evaluate.shared.po.Item;

@RemoteServiceRelativePath("ItemService")
public interface ItemService extends RemoteService{
	public static class Util {
		private static ItemServiceAsync instance;

		public static ItemServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(ItemService.class);
			}
			return instance;
		}
	}
	
	public List<Item> getList();
	
	public int getTotalNumber();
	
	public String modify(Item item, boolean isModiy);
}
